package com.chenbei.erp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chenbei.erp.domain.PurchaseOrder;
import com.chenbei.erp.vo.req.PurchaseOrderReq;

public interface IPurchaseOrderService extends IService<PurchaseOrder> {

    /**
     * 新增
     * @param purchaseOrder 实例
     */
    void add(PurchaseOrder purchaseOrder);

    /**
     * 更新
     * @param purchaseOrder 实例
     */
    void update(PurchaseOrder purchaseOrder);

    /**
     * 详情
     * @param id 订单ID
     * @return PurchaseOrder
     */
    PurchaseOrder detail(Long id);

    /**
     * 分页列表
     * @param purchaseOrderReq 查询条件
     * @return Page
     */
    Page<PurchaseOrder> pageList(PurchaseOrderReq purchaseOrderReq);
}
